package session.stateless.FRM;

import entity.FRM.CustomerInvoice;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Schedule;

@Local
public interface CustomerInvoiceBeanLocal {
    public Long createCustomerInvoice_CashInAdvance(Long saleOrderId, Double cashInAdvance);
    public Long createCustomerInvoice(Long deliveryOrderId, Double finalAmount);
    
    public List<CustomerInvoice> getAllCustomerInvoices();
    public List<CustomerInvoice> getAllCustomerInvoices_Pending();
    public CustomerInvoice findCustomerInvoice(Long customerInvoiceId);
    
//    @Schedule(dayOfWeek="*", hour ="0")
//    public void clearExpiredInvoices();
}
